package com.sy.mapper;

import com.sy.bean.pucharse.AuditStatus;
import com.sy.bean.pucharse.Shipment;

import com.sy.bean.pucharse.excel.ShipmenteExcel;
import com.sy.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShipmentMapper extends IMapper<Shipment> {
    /**
     * 根据年查询最大编码
     * @param year 年
     * @return
     */
    String queryMaxCode(String year);
    /**
     * 导出的采购列表
     * @param map
     * @return
     */
    List<ShipmenteExcel> exportsm(Map map);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int batchDelete(@Param("ids") List<Integer> ids);

    /**
     * 根据id批量审核
      * @return
     */
    int batchStatus(AuditStatus status);
}
